package liuyuyang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import liuyuyang.domain.Permission;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {
    @Select("select * from sys_role_permission rp, sys_permission p where rp.perm_id = p.id and rp.role_id = #{rid}")
    public List<Permission> getRolePerm(Integer rid);
}
